<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0053)http://115.28.87.22:8888/business/MtBusinessDate.html -->
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Expires" content="0">
<title>项目营业日报表 | 管理易-广告加工制作管理软件  企业版 9.28  | 易凯软件</title>
<script src="../js/minierp.js"></script>

<link rel="stylesheet" type="text/css" href="../css/base.css">
<link href="../css/Query.css" rel="stylesheet" type="text/css">
<link href="../css/dhtmlgoodies_calendar.css" rel="stylesheet" type="text/css">
<script src="../js/QueryList.js"></script>
<script src="../js/popup_ext.js"></script>
<script src="../js/dhtmlgoodies_calendar.js"></script>
<script language="javascript">
	function doSearch(){
		var startDate=document.getElementById("start_date").value;
		var endDate=document.getElementById("end_date").value;
		var tsId=document.getElementById("ts_id").value;
		
		if(startDate!=null && startDate!=''){
			var arr=startDate.split("-");
			if(arr.length==null || arr.length!=3){
				ShowAlert('提示框','开始日期格式不正确',200,100);
				return;
			}else if(isNaN(arr[0]) || isNaN(arr[1]) || isNaN(arr[2])){
				ShowAlert('提示框','开始日期格式不正确',200,100);
				return;
			}
		}else{
			ShowAlert('提示框','请选择开始日期',200,100);
			return;
		}
		if(endDate!=null && endDate!=''){
			var arr=endDate.split("-");
			if(arr.length==null || arr.length!=3){
				ShowAlert('提示框','结束日期格式不正确',200,100);
				return;
			}else if(isNaN(arr[0]) || isNaN(arr[1]) || isNaN(arr[2])){
				ShowAlert('提示框','结束日期格式不正确',200,100);
				return;
			}
		}else{
			ShowAlert('提示框','请选择结束日期',200,100);
			return;
		}
		
		window.location="../business/MtBusinessDate.html?start_date="+startDate+"&end_date="+endDate+"&ts_id="+tsId;
	}
	
	function getSearchCondition(){
		var startDate="2017-07-09";
		var endDate="2017-07-09";
		var tsId="1";
		var str="start_date="+startDate+"&end_date="+endDate+"&ts_id="+tsId;
		return str;
	}
	function doDownload(){
		var str=getSearchCondition();
		window.location="../business/MtBusinessDate.html?content_type=EXCEL&"+str;
	}
	function doCancel(){
		window.close();
	}
	function doInit(){
		Window_Onload();
	}
	function checkInput(){
		if(window.event.keyCode==13){
			doSearch();
		}
	}
	function setDate(type){
		var d=new Date();
		var startStr="";
		var endStr="";
		if(type=="CURRENT_MONTH"){
			startStr=d.getFullYear()+"-"+(d.getMonth()+1)+"-01";
			endStr=d.getFullYear()+"-"+(d.getMonth()+1)+"-"+d.getDate();
		}else if(type=="PREVIEW_MONTH"){
			d=new Date(d.getFullYear(),d.getMonth(),1);
			d.setDate(d.getDate()-1);
			startStr=d.getFullYear()+"-"+(d.getMonth()+1)+"-1";
			endStr=d.getFullYear()+"-"+(d.getMonth()+1)+"-"+d.getDate();
		}else if(type=="TODAY"){
			startStr=d.getFullYear()+"-"+(d.getMonth()+1)+"-"+d.getDate();
			endStr=d.getFullYear()+"-"+(d.getMonth()+1)+"-"+d.getDate();
		}else if(type=="YESTERDAY"){
			d.setDate(d.getDate()-1);
			startStr=d.getFullYear()+"-"+(d.getMonth()+1)+"-"+d.getDate();
			endStr=d.getFullYear()+"-"+(d.getMonth()+1)+"-"+d.getDate();
		}
		document.getElementById("start_date").value=startStr;
		document.getElementById("end_date").value=endStr;
	}
	function DoubleClick(it){
		
	}
	function showDetail(mtId){
		var url="../business/BusinessBillItemSearchResult.html?search_type=1&cb_make_type=1&make_type="+mtId+"&cb_order_date=1&start_date=2017-07-09&end_date=2017-07-09&cb_examine=1&examined=Y";
		var tsId="1";
		if(tsId!="" && tsId!="0"){
			url=url+"&cb_ts=1&ts_id="+tsId;
		}
		showWin(1024,600,url);
	}
</script>
</head>
<body class="sheet" style="text-align:center;">
<div class="sheet-main" style="width:860px;text-align:left;margin:auto;">
  <div class="sheet-top">
    <div class="content">
      <h2>项目营业日报表</h2>
      <p>统计指定期间的各个项目的交易笔数与营业额</p>
    </div>
  </div>
  <div class="sheet-list">
    	<div class="search-business">
	      <div class="content">
	        <table width="100%">
	          <tbody>
	            <tr>
	              <td align="right">
					日期：
					<input type="text" class="TextBox Datetime" maxlength="15" onkeyup="checkInput();" id="start_date" name="start_date" value="2017-07-09">
					<img src="../images/calendar.gif" style="cursor:pointer" onclick="displayCalendar(document.getElementById(&#39;start_date&#39;),&#39;yyyy-mm-dd&#39;,this);">
					至<input class="TextBox Datetime" type="text" maxlength="15" onkeyup="checkInput();" id="end_date" name="end_date" value="2017-07-09">
					<img src="../images/calendar.gif" style="cursor:pointer" onclick="displayCalendar(document.getElementById(&#39;end_date&#39;),&#39;yyyy-mm-dd&#39;,this);">											
					<a href="javascript:setDate(&#39;CURRENT_MONTH&#39;);">本月</a>
					<a href="javascript:setDate(&#39;TODAY&#39;);">今天</a>
					<a href="javascript:setDate(&#39;YESTERDAY&#39;);">昨天</a>
					<a href="javascript:setDate(&#39;PREVIEW_MONTH&#39;);">上月</a>
					<select name="ts_id" id="ts_id">
						<option value="0">==请选择帐套==</option>
						
							<option value="1" selected="">新异</option>
						
							<option value="2">网络公司</option>
						
		  			</select>
					<input type="button" value=" 查 询" onclick="doSearch();" class="buttom search-but">
					<input type="button" value=" 导 出" onclick="doDownload();" class="buttom search-out" id="sDownloadButton" name="sDownloadButton">
				   </td>
	            </tr>    
	            </tbody>      
	        </table>      	 
	      </div>
		  
		  <div class="TopToolBar">
	            <table class="ListNoteInfo" cellpadding="0" cellspacing="0">
	            	<tbody><tr>
	                	<td>&nbsp;&nbsp;项目合计：0元&nbsp;&nbsp;优惠合计：0元&nbsp;&nbsp;实际营业额：0元</td>
	            	</tr>
	            </tbody></table>
		  </div>
		  
	      <div class="table-list">
	      		<table width="100%">
					<tbody><tr>
						<th width="60%">项目类型</th>
						<th width="20%">数量（笔）</th>
						<th width="20%">营业额</th>
					</tr>
					
				</tbody></table>
			</div>
		
 		</div>
  </div>
<div>

</div></div></body></html>